package co.yixiang.yshop.module.tables.convert.reservation;

import java.util.*;

import co.yixiang.yshop.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import co.yixiang.yshop.module.tables.controller.admin.reservation.vo.*;
import co.yixiang.yshop.module.tables.dal.dataobject.reservation.ReservationDO;

/**
 * 预约记录 Convert
 *
 * @author yshop
 */
@Mapper
public interface ReservationConvert {

    ReservationConvert INSTANCE = Mappers.getMapper(ReservationConvert.class);

    ReservationDO convert(ReservationCreateReqVO bean);

    ReservationDO convert(ReservationUpdateReqVO bean);

    ReservationRespVO convert(ReservationDO bean);

    List<ReservationRespVO> convertList(List<ReservationDO> list);

    PageResult<ReservationRespVO> convertPage(PageResult<ReservationDO> page);

    List<ReservationExcelVO> convertList02(List<ReservationDO> list);

}
